home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / epoch-faq / latexinfo (.txt) < prev   
Encoding:
LaTeX Document  |  1995-07-25  |  71.3 KB  |  1,517 lines

  1. Subject: GNU Epoch FAQ (LaTeXinfo version)
  2. Newsgroups: gnu.epoch.misc,news.answers
  3. From: dbc@cs.brown.edu (Brook Conner)
  4. Date: Mon, 5 Jul 1993 15:48:09 GMT
  5. Archive-name: epoch-faq/latexinfo
  6. Last-modified: Sun May  2 14:39:25 EDT 1993
  7. Version: 2.0
  8. Posting-frequency: bimonthly
  9. \documentstyle[latexinfo]{report}
  10. \pagestyle{headings}
  11. \begin{document}
  12. \title{Epoch FAQ (Frequently Asked Questions)\\
  13. (or at least Occasionally Wondered-About Questions)}
  14. \author{Maintained by Brook Conner ({\tt dbc.epoch-faq@cs.brown.edu})}
  15. \date{Last Modified Fri Jan 15 12:49:28 EST 1993\\
  16. by Brook Conner ({\tt dbc.epoch-faq@cs.brown.edu})}
  17. \maketitle
  18. \newindex{cp}
  19. \tableofcontents
  20. \setfilename{epochfaq}
  21. \node Top, Disclaimer, Index, (dir)
  22. \cindex{What is this?}
  23. \section{What is this?}
  24. This is a list of Frequently Asked Questions about the text editor
  25. Epoch.  In common Internet usage, thus, this is the Epoch FAQ.
  26. The latest version of this FAQ will be always available via anonymous
  27. FTP to "/anonymous@ftp.ncsa.uiuc.edu:outgoing/marca/epoch" or
  28. "/anonymous@cs.uiuc.edu:pub/epoch-files/epoch"
  29. Please feel free to send comments, suggestions, additions, and
  30. corrections to dbc.epoch-faq@cs.brown.edu.
  31. \begin{ifinfo}
  32. If you are reading this as a plain text file, not as an Info file, you
  33. can search for topics by searching for the characters \key{^_}.  If you
  34. want to search for a particular topic, for example, `Fred', search for
  35. \key{Node: Fred}.  There is an Index at the end: \key{Node: Index}.
  36. Here is a list of the topics covered in this FAQ:
  37. \end{ifinfo}
  38. \begin{menu}
  39. * Epoch and GNU Emacs:: What exactly is Epoch and how is it different
  40. from various versions of Emacs?
  41. * Configuring Epoch:: How can I make Epoch suit me better?
  42. * Windows:: How to do I control Epoch's windows?
  43. * Colors and Fonts:: How do I control colors and fonts?
  44. * Menus:: How can I add menus?
  45. * Keyboard:: How can I ``fix'' the keyboard?
  46. * Highlighting:: How can I get Epoch to highlight important things in
  47. my files?
  48. * Epoch-Specific Emacs Lisp Packages:: What's out there that others
  49. have already written?
  50. * Other Resources:: Where else can I get information about Epoch?
  51. * Advanced Questions:: Hacks to ``fix'' stuff in specific situations.
  52. * Disclaimer:: What this FAQ does and doesn't do.
  53. * Latest Changes:: What's new in the FAQ.
  54. * Formatting the FAQ:: How to format this FAQ for printing or browsing.
  55. * Prerequisites:: What you need to know to read the FAQ.
  56. * Contributors:: Who provided the information.
  57. * Index:: An index of the questions and what they're about.
  58. \end{menu}
  59. \node Disclaimer, Latest Changes, Top, (dir)
  60. \cindex{Disclaimer}
  61. \section{Disclaimer}
  62. Unless otherwise attributed, information below is based only on Yours
  63. Truly's use and experience with Epoch and is BY NO MEANS GUARANTEED to
  64. be correct, complete, or even coherent.  If it works for you, great;
  65. if it doesn't, let me know, but there are no guarantees.
  66. Many of the answers given herein APPLY ONLY to Epoch 4.2.  I run Epoch
  67. on SPARCstations, DECstation 5000s, IBM RS/6000s, and HP 700s; other
  68. configurations may behave differently.  Please let me know of any such
  69. differences.
  70. \node Latest Changes, Prerequisites, Formatting the FAQ, (dir)
  71. \cindex{Latest Changes}
  72. \section{Latest Changes}
  73. No real changes this time around.  Just fixed some typos noticed by
  74. Larry W. Virden (lwv26@cas.org).\cindex{Virden, Larry}  I also added a
  75. section about formatting the FAQ (\pxref{Formatting the FAQ}).
  76. \node Formatting the FAQ, Latest Changes, Disclaimer, (dir)
  77. \cindex{Formatting the FAQ}
  78. \section{Formatting the FAQ}
  79. As you may have noticed, the FAQ is written in \LaTeX info format.  It
  80. is being posted in \LaTeX info format, and in plain Info format.  The
  81. plain Info version can be read reasonably well without an Info reader
  82. (if you don't agree, please send me mail: dbc.epoch-faq@cs.brown.edu).
  83. Of course, I recommend adding it to your Info tree.  Since an Info file
  84. contains control characters, it is possible that the file got truncated.
  85. If this is a problem for you, let me know, and I can strip out the
  86. control characters before posting.  Of course, this would mean you'd
  87. have to format the \LaTeX info version yourself to get a valid Info
  88. file. 
  89. The latest version of \LaTeX info is 1.9, which is available as
  90. /ftp.ensmp.fr:pub/latexinfo/latexinfo-1.9.tar.Z
  91. The \LaTeX info distribution contains two important things.  The first
  92. is a style file called \file{latexinfo.sty}, which is used by \LaTeX\
  93. when formatting this FAQ.  The second is a collection of Emacs Lisp
  94. files that allow you to format a \LaTeX info file as an Info file.
  95. Instructions on using these things is included with the \LaTeX info
  96. distribution.  At this time there are a lot of overfull and underfull
  97. hboxes in the file.  This is because of a great preponderance of
  98. verbatim sections.  I'll fix these as soon as I get the chance. 
  99. Older versions include:
  100. \begin{itemize}
  101. \item An old version (1.3) of \LaTeX info is available from the GNU Emacs
  102.   Lisp archives, such as
  103.   /gatekeeper.dec.com:/.8/GNU/elisp-archive/packages/latexinfo 
  104. \item I have found a copy of the latest version (1.7) as
  105.   /csc-sun.math.utah.edu:/pub/tex/pub/latexinfo/latexinfo-1.7.tar.z
  106.   If anyone knows of other sites, please let me know. 
  107. \end{itemize}
  108. \node Prerequisites, Contributors, Formatting the FAQ, (dir)
  109. \cindex{Prerequisites}
  110. \cindex{Manuals}
  111. \cindex{Emacs FAQ}
  112. \section{Prerequisites}
  113. In the answers in this FAQ, I assume at least a little familiarity
  114. with GNU Emacs Lisp.  Suggested resources that could be considered
  115. necessary references for material in this FAQ are:
  116. \begin{itemize}
  117. \item The GNU Emacs and Epoch manuals (available online via C-h i).
  118. \item The GNU Elisp manual (available via anonymous FTP as
  119. /anonymous@prep.ai.mit.edu:pub/gnu/elisp-manual-1.03.tar.Z or
  120. /anonymous@18.71.0.38:pub/gnu/elisp-manual-1.03.tar.Z)
  121. \item The gnu.emacs.help FAQ in the file etc/FAQ (the latest version
  122. is available in the gnu.emacs.help Usenet newsgroup or via FTP as
  123. /anonymous@rtfm.mit.edu:pub/usenet/gnu.emacs.help or
  124. /anonymous@18.172.1.27:pub/usenet/gnu.emacs.help
  125. \end{itemize}
  126. \node Epoch and GNU Emacs, Configuring Epoch, Advanced Questions, Top
  127. \cindex{Epoch and GNU Emacs}
  128. \section{Epoch and GNU Emacs}
  129. \begin{menu}
  130. * What is Epoch?::
  131. * How can I get Epoch?::
  132. * What is the latest version of Epoch?::
  133. * Moving to Epoch 4 broke some lisp code that worked before::
  134. * I switched Epoch versions and my X resources are being ignored::
  135. * What's the difference between Epoch and GNU Emacs version 19?::
  136. \end{menu}
  137. \node What is Epoch?, How can I get Epoch?, , Epoch and GNU Emacs
  138. \cindex{What is Epoch?}
  139. \cindex{Steroids}
  140. \cindex{X11 Windowing System}
  141. \cindex{Features of Epoch}
  142. \subsection{What is Epoch?}
  143. Epoch is GNU Emacs on steroids: an adaptation of GNU Emacs with lots
  144. of additional support for features made possible by the X11 windowing
  145. system.  These features include multiple editing windows, arbitrary
  146. colors and fonts (fixed-width and proportional), selectable zones per
  147. buffer with arbitrary display styles (font, color, underline, stipple,
  148. pixmap), an optional separate minibuffer window, improved keyboard and
  149. mouse handling, full 8-bit character set support, and more.
  150. Epoch, like GNU Emacs, is very customizable; much of this FAQ
  151. describes ways to customize Epoch for specific purposes.
  152. \node How can I get Epoch?, What is the latest version of Epoch?, What is Epoch?, Epoch and GNU Emacs
  153. \cindex{How can I get Epoch?}
  154. \cindex{Where is Epoch?}
  155. \cindex{Finding Epoch}
  156. \cindex{Anonymous FTP}
  157. \subsection{How can I get Epoch?}
  158. Epoch is available via anonymous FTP as
  159. /anonymous@cs.uiuc.edu:pub/epoch-files/epoch/epoch-4.2.tar.Z or
  160. /anonymous@128.174.252.1:pub/epoch-files/epoch/epoch-4.2.tar.Z
  161. According to Simon Marshall (S.Marshall@sequent.cc.hull.ac.uk):
  162. \begin{quote}
  163. Like GNU & X11 stuff, epoch is available in the UK from
  164. uk.ac.ic.doc.src (00000510200001).  You can log on; there's help to
  165. tell you the different ways of getting source.  Epoch is in
  166. /gnu/epoch.
  167. \end{quote}
  168. Epoch is also available from
  169. /anonymous@aix370.rrz.uni-koeln.de:gnu/emacs/epoch or
  170. /anonymous@134.95.132.2:gnu/emacs/epoch
  171. Volunteers for other FTP sites outside the United States, or for
  172. mail access to Epoch source, please step forward.
  173. \node What is the latest version of Epoch?, Moving to Epoch 4 broke some lisp code that worked before, How can I get Epoch?, Epoch and GNU Emacs
  174. \cindex{What is the latest version of Epoch?}
  175. \cindex{Version of Epoch}
  176. \cindex{Epoch Version}
  177. \subsection{What is the latest version of Epoch?}
  178. The latest version is 4.2.  Previous versions still in use by some
  179. people include 4.0 patchlevels 0,1, and 2, 4.1, the 4.0 alpha and beta
  180. levels, and version 3.2.
  181. Epoch 4.2 is based on GNU Emacs 18.58, which is the most recent
  182. version of GNU Emacs.
  183. Existing installations of Epoch 4.1 should be upgraded to 4.2 as
  184. soon as possible.
  185. \node Moving to Epoch 4 broke some lisp code that worked before, I switched Epoch versions and my X resources are being ignored, What is the latest version of Epoch?, Epoch and GNU Emacs
  186. \cindex{Moving to Epoch 4 broke some lisp code that worked before}
  187. \cindex{Emacs Lisp}
  188. \cindex{Buttons}
  189. \cindex{Zones}
  190. \cindex{Function names changed}
  191. \subsection{Moving to Epoch 4 broke some lisp code that worked before}
  192. In one of the beta versions of epoch, the term "button" was replaced
  193. by the term "zone".  The idea was, "button" was misleading (since it
  194. refered to a mouse button or a pushbutton as well).  It didn't really
  195. describe Epoch's attributed text.
  196. As a consequence, the names of all the button-related function names
  197. and variables were changed.  There are two ways to deal with this
  198. change:
  199. \subsubsection{Fset the function names}
  200. Put the following command at the head of each file of elisp code
  201. that uses buttons:
  202. \begin{verbatim}
  203.     (require 'button)
  204. \end{verbatim}
  205. This simply does a series of fset's to replace the "button" names with
  206. the new "zone" names.
  207. \subsubsection{Edit the source}
  208. Convert all references of "button" to "zone".  You can use the
  209. function convert-current-buffer in epoch-lisp/convert-buttons.el (in
  210. the Epoch distribution) to do this automatically.
  211. NOTE: There may be additional problems; in particular, since
  212. attributes were eliminated in Epoch 4.0, any use of them will have to
  213. be eliminated also.  This is less simple than switching from buttons
  214. to zones.  Fortunately, most Epoch packages on the net now support
  215. 4.0.  Therefore, I won't bother to come up with an answer for this one
  216. (unless someone actually needs to know).
  217. \node I switched Epoch versions and my X resources are being ignored, What's the difference between Epoch and GNU Emacs version 19?, Moving to Epoch 4 broke some lisp code that worked before, Epoch and GNU Emacs
  218. \cindex{I switched Epoch versions and my X resources are being ignored}
  219. \cindex{X Resources ignored}
  220. \cindex{Ignored resources}
  221. \cindex{New version}
  222. \subsection{I switched Epoch versions and my X resources are being
  223. ignored}
  224. From Martin Boyer (mboyer@ireq-robot.hydro.qc.ca):
  225. Old versions of Epoch extracted its X default resources from
  226. the user's .Xdefaults file by hand; this is no longer the case.  If
  227. Epoch isn't picking up resources like previous versions did on your
  228. system, prior to starting Epoch do this:
  229. \begin{verbatim}
  230.     xrdb -merge $HOME/.Xdefaults
  231. \end{verbatim}
  232. This makes the X server's database pick up and maintain all of the
  233. resource definitions found in $HOME/.Xdefaults.
  234. Alternatively, you can use the '-ud' command line flag to force
  235. Epoch to manually scan $HOME/.Xdefaults.
  236. A second problem is that Epoch uses the first word in the command
  237. that executed Epoch (argument 0) to search the X resource database for
  238. Epoch resources.  Thus, if you invoke Epoch with the name:
  239. \begin{verbatim}
  240.     epoch-4.2
  241. \end{verbatim}
  242. Epoch will use the string 'epoch-4.2' to search the resource
  243. database, thereby missing the resources specified by the name 'epoch'.
  244. The workaround is to use the '-name' or '-rn' command-line option like
  245. \begin{verbatim}
  246.     epoch-4.2 -name epoch
  247. \end{verbatim}
  248. \begin{verbatim}
  249.     epoch-4.2 -rn epoch
  250. \end{verbatim}
  251. Using -name is more recommended, as it is a sort-of standard option
  252. among X applications (most X Toolkit applications support it).
  253. \node What's the difference between Epoch and GNU Emacs version 19?, , I switched Epoch versions and my X resources are being ignored, Epoch and GNU Emacs
  254. \cindex{What's the difference between Epoch and GNU Emacs version 19?}
  255. \cindex{Lucid Emacs}
  256. \cindex{Emacs 19}
  257. \cindex{GNU Emacs 19}
  258. \subsection{What's the difference between Epoch and GNU Emacs version
  259. To quote directly from the GNU 'status' file (obtained via anonymous
  260. FTP as /anonymous@prep.ai.mit.edu:pub/gnu/status or
  261. /anonymous@18.71.0.38:pub/gnu/status):
  262. \begin{quotation}
  263.   Emacs 18 maintenance continues for simple bug fixes.  Version 19
  264.   approaches release, counting among its new features before and after
  265.   change hooks, source-level debugging of Emacs Lisp programs, X
  266.   selection processing, including CLIPBOARD selections, scrollbars,
  267.   support for European character sets, floating point numbers,
  268.   per-buffer mouse commands, interfacing with the X resource manager,
  269.   mouse-tracking, lisp-level binding of function keys, and multiple X
  270.   windows (`screens' to emacs).
  271.   Thanks go to Alan Carroll and the people who worked on Epoch for
  272.   generating initial feedback to a multi-windowed emacs.  Emacs 19
  273.   supports two styles of multiple windows, one with a separate screen
  274.   for the minibuffer, and another with a minibuffer attached to each
  275.   screen.\cindex{Carroll, Alan}
  276.   A couple of other features of Version 19 are buffer allocation, which
  277.   uses a new mechanism capable of returning storage to the system when a
  278.   buffer is killed, and a new input system--all input now arrives in the
  279.   form of Lisp objects.
  280.   Other features under consideration for later releases of Version 19
  281.   include:
  282. \begin{itemize}
  283. \item Associating property lists with regions of text in a buffer.
  284. \item Multiple font, color, and pixmaps defined by those properties.
  285. \item Different visibility conditions for the regions, and for various
  286.      windows showing one buffer.
  287. \item Hooks to be run if point or mouse moves outside a certain range.
  288. \item Incrementally saving undo history in a file, so that recover-file
  289.      also reinstalls buffer's undo history.
  290. \item Static menu bars, and better pop-up menus.
  291. \end{itemize}
  292. \end{quotation}
  293. Epoch currently supports much of the new functionality of GNU Emacs
  294. v19, including some features that apparently won't be immediately
  295. available in GNU Emacs v19 (notably, associating property lists with
  296. regions of text, and multiple fonts/colors/pixmaps defined by those
  297. properties).
  298. A postscript to this answer is a message that Richard Stallman
  299. (Mr. Gnu himself) posted to gnu.emacs.help in Apr 1992:
  300. \begin{quotation}
  301.   Emacs 19 won't support text highlighting, but a later version will.
  302.   We have code basically working for attaching arbitrary properties to
  303.   parts of the text, including choice of font and color.
  304.   This feature is designed for attributes which are considered part of
  305.   the text itself.  What Epoch provides is highlighting that is part
  306.   of the presentation of the text, not logically part of the text itself.
  307.   That is useful also; I hope we will find the wherewithal to implement
  308.   that along with the other highlighting features.
  309. \end{quotation}
  310. There is also a version of Emacs 19 written by Lucid.  Called "Lucid
  311. Emacs", this is something from its README about it:
  312. \begin{quotation}
  313.   Lucid GNU Emacs 19.3 is now available.  This is a version of GNU
  314.   Emacs derived from an early version of Emacs version 19 from the
  315.   Free Software Foundation.
  316.   You can get it via anonymous FTP from the host labrea.Stanford.EDU
  317.   (36.8.0.47). It is currently available only by FTP.  We don't have
  318.   the manpower to make tapes right now.
  319.   Log in with the user "anonymous" and "username@host" as a password
  320.   (that is, your email address.)  Execute the command "cd
  321.   pub/gnu/lucid/".  These are the files you will find there:
  322.   lemacs-19.3.tar.Z
  323.         The complete source distribution.  This file is about 8 megabytes.
  324.         When untarred and uncompressed, the source distribution will take up
  325.         about 20 megs. You will need an additional 12 megs or so to compile it.
  326.   lemacs-19.3-sun4.tar.Z
  327.         This is a ready-to-run set of Sun4 executables, and a DOC file.  If
  328.         you want to use these executables, you will still need to get the file
  329.         lemacs-19.3.tar.Z, because Emacs cannot function very well without the
  330.         lisp library online.  This file is about 1.7 megs, 3.8 megs when
  331.         unpacked, 3 megs of which is the Emacs executable itself (2.1 megs if
  332.         stripped.)
  333.   Don't forget to set "binary" mode when transferring these files.
  334.   Unpack them with some variation of the command "zcat
  335.   lemacs-19.3.tar.Z | tar -vxf -".
  336.   .... [edit out info on lucid emacs mailing lists] ....
  337.   Why Another Version of Emacs?
  338.   =============================
  339.   Lucid's latest product, Energize, is a C/C++ development
  340.   environment.  Rather than invent (and force our users to learn) a
  341.   new user-interface, we chose to build part of our environment on top
  342.   of the world's best editor, GNU Emacs. (Though our product is
  343.   commercial, the work we did on GNU Emacs is free software, and is
  344.   useful without having to purchase our product.)
  345.   We needed a version of Emacs with mouse-sensitive regions, multiple
  346.   fonts, the ability to mark sections of a buffer as read-only, the
  347.   ability to detect which parts of a buffer has been modified, and
  348.   many other features.
  349.   Why Not Epoch?
  350.   ==============
  351.   For our purposes, the existing version of Epoch was not sufficient;
  352.   it did not allow us to put arbitrary pixmaps/icons in buffers,
  353.   `undo' did not restore changes to regions, regions did not overlap
  354.   and merge their attributes in the way we needed, and several other
  355.   things.
  356.   We could have devoted our time to making Epoch do what we needed
  357.   (and, in fact, we spent some time doing that) but, since the FSF
  358.   planned to include Epoch-like features in their version 19, we
  359.   decided that our efforts would be better spent improving Emacs19
  360.   instead of Epoch.
  361.   Our original hope was that our changes to Emacs would be
  362.   incorporated into the "official" v19.  However, scheduling conflicts
  363.   arose, and we found that, given the amount of work still remaining
  364.   to be done, we didn't have time to merge with the FSF's code.
  365.   Consequently, we have released our work as a forked branch of Emacs,
  366.   instead of delaying any longer.
  367.   It seems likely that a merger of Epoch and Lucid Emacs will occur in
  368.   the not-too-distant future.
  369. \end{quotation}
  370. \node Configuring Epoch, Windows, Epoch and GNU Emacs, Top
  371. \cindex{Configuring Epoch}
  372. \section{Configuring Epoch}
  373. \begin{menu}
  374. * How can my .emacs file deal with both GNU Emacs and Epoch?::
  375. * How can I configure Epoch to support full 8-bit character sets?::
  376. * How can I cut and paste between Epoch and OpenLook?::
  377. \end{menu}
  378. \node How can my .emacs file deal with both GNU Emacs and Epoch?, How can I configure Epoch to support full 8-bit character sets?, , Configuring Epoch
  379. \cindex{How can my .emacs file deal with both GNU Emacs and Epoch?}
  380. \cindex{Handling Epoch-specific code}
  381. \cindex{.emacs file}
  382. \subsection{How can my .emacs file deal with both GNU Emacs and Epoch?}
  383. An easy way to handle both GNU Emacs and Epoch within the same .emacs
  384. file is to define a variable 'running-epoch' as follows:
  385. \begin{verbatim}
  386.   (defvar running-epoch (boundp 'epoch::version))
  387. \end{verbatim}
  388. Then, the rest of your .emacs file can look like this:
  389. \begin{verbatim}
  390.     (if running-epoch
  391.       (progn
  392.         ... [Epoch-specific code here] ...
  393.     ))
  394.   ... [Emacs code here] ...
  395. \end{verbatim}
  396. (After this, when I refer to 'your .emacs file', read that as 'the
  397. Epoch-specific portion of your .emacs file', under the assumption that
  398. you have both general and Epoch-specific parts as detailed above.)
  399. If you have a large amount of Epoch-specific code it may be better to
  400. put it in a separate file (e.g., "epoch-specific.el"), possibly
  401. byte-compile it, then load it from your .emacs file like so:
  402. \begin{verbatim}
  403.     (if (boundp 'epoch::version) (load "epoch-specific"))
  404. \end{verbatim}
  405. \node How can I configure Epoch to support full 8-bit character sets?, How can I cut and paste between Epoch and OpenLook?, How can my .emacs file deal with both GNU Emacs and Epoch?, Configuring Epoch
  406. \cindex{How can I configure Epoch to support full 8-bit character sets?}
  407. \cindex{8-bit characters}
  408. \cindex{Eight-bit characters}
  409. \cindex{Character display and input}
  410. \cindex{Display and input of characters}
  411. \cindex{Input and display of characters}
  412. \subsection{How can I configure Epoch to support full 8-bit character
  413. sets?}
  414. There are two parts to this: display and input.
  415. Display is handled by the variables "meta-printable" and "ctl-arrow".
  416. From the documentation string for "meta-printable":
  417. \begin{quotation}
  418.   Non-nil means meta characters, that is characters in the range
  419.   0240..0377, are printable.  Nil means display meta chars  with
  420.   backslash and octal digits.  Automatically becomes local when set in
  421.   any fashion.
  422. \end{quotation}
  423. From the documentation string for "ctl-arrow":
  424. \begin{quotation}
  425.   t means display control chars with uparrow. Nil means use backslash
  426.   and octal digits. Automatically becomes local when set in any
  427.   fashion.
  428. \end{quotation}
  429. Input is handled by the flag "EIGHTBIT_KEYBOARD", which is set in config.h:
  430. \begin{verbatim}
  431.   /* Define EIGHTBIT_KEYBOARD if you want keys in range 0240 to 0377
  432.    * to insert corresponding eight-bit characters.
  433.    */
  434.   /* #define EIGHTBIT_KEYBOARD */
  435. \end{verbatim}
  436. Define this flag only if you are using a keyboard with direct support
  437. for 8-bit characters.
  438. \node How can I cut and paste between Epoch and OpenLook?, , How can I configure Epoch to support full 8-bit character sets?, Configuring Epoch
  439. \cindex{OpenLook}
  440. \cindex{Cut and Paste}
  441. \subsection{How can I cut and paste between Epoch and OpenLook?}
  442. Arnold Smith (smith@cam.sri.com) says:
  443. \cindex{Smith, Arnold}
  444. \begin{quote}
  445.   Yes it works easily enough, it's just a little awkward in terms of
  446.   the operations required.  Here's the relevant excerpt from my
  447.   epoch-tailoring file (I use a Sun SPARCstation IPX running SunOS
  448.   4.1.2 and OW):
  449. \end{quote}
  450. \begin{verbatim}
  451. ;; Allow cut and paste selections to come from OpenLook windows, by using
  452. ;; CLIPBOARD rather than the default PRIMARY.  From the epoch 4.0 manual...
  453. (setq mouse::selection-atom (intern-atom "CLIPBOARD"))
  454. ;; Install handler for selection-clear on this selection
  455. (push-selection mouse::selection-atom 'mouse-clear)
  456. ;; The above still doesn't make things entirely simple.  To get text from
  457. ;; an epoch window into a cmdtool or shelltool window, select it by wiping
  458. ;; the cursor across the source selection while holding down the left
  459. ;; mouse key.  Then move the cursor into the destination window and press
  460. ;; the "Paste" key on the left-hand side of the keyboard.  To copy text in
  461. ;; the other direction, select it similarly in the cmdtool window, press
  462. ;; the "Copy" key, move the cursor to the epoch window, and press the
  463. ;; middle mouse button where you want the text to appear.  (Sometimes I
  464. ;; have to actually hold the middle mouse button down for a fraction of a
  465. ;; second---a light click doesn't always seem to register).
  466. \end{verbatim}
  467. \node Windows, Colors and Fonts, Configuring Epoch, Top
  468. \cindex{Windows}
  469. \section{Windows}
  470. \begin{menu}
  471. * How do I get the minibuffer back at the bottom of my edit window?::
  472. * How do I prevent the initial edit window from appearing?::
  473. * How do I stop the windows from automatically raising upon entry?::
  474. * How do I change the cursor?::
  475. * How do I define edit screen attributes on a per-mode basis?::
  476. * How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?::
  477. * How do I iconify my entire Epoch session at once?::
  478. * Does Epoch support scrollbars?::
  479. * How can I make more room for windows?::
  480. \end{menu}
  481. \node How do I get the minibuffer back at the bottom of my edit window?, How do I prevent the initial edit window from appearing?, , Windows
  482. \cindex{How do I get the minibuffer back at the bottom of my edit window?}
  483. \cindex{One minibuffer window}
  484. \cindex{Minibuffer window}
  485. \subsection{How do I get the minibuffer back at the bottom of my edit
  486. window?}
  487. Start Epoch with the command-line option '-nm'.  Alternately, in your
  488. general .Xdefaults file, specify:
  489. \begin{example}
  490.     epoch.nonlocal.minibuf: False
  491. \end{example}
  492. \node How do I prevent the initial edit window from appearing?, How do I stop the windows from automatically raising upon entry?, How do I get the minibuffer back at the bottom of my edit window?, Windows
  493. \cindex{How do I prevent the initial edit window from appearing?}
  494. \cindex{Inital edit window}
  495. \cindex{First window}
  496. \subsection{How do I prevent the initial edit window from appearing?}
  497. In other words, how do I get only the minibuffer upon startup?
  498. There is a variable that controls whether or not an initial edit
  499. window will be provided. By default, of course, one is; to stop this
  500. from happening, put the following in your .emacs:
  501. \begin{verbatim}
  502.     (setq inhibit-initial-screen-mapping t)
  503. \end{verbatim}
  504. This will have no effect if you're using local minibuffers (i.e. when
  505. the minibuffer is a part of each edit window), as described above.
  506. [Thanks to Chris Love (love@cs.uiuc.edu).]\cindex{Love, Chris}
  507. \node How do I stop the windows from automatically raising upon entry?, How do I change the cursor?, How do I prevent the initial edit window from appearing?, Windows
  508. \cindex{How do I stop the windows from automatically raising upon entry?}
  509. \cindex{Windows pop up, stopping}
  510. \cindex{Pop up windows, stopping}
  511. \cindex{Windows raise on entry}
  512. \cindex{On entry, windows raise}
  513. \subsection{How do I stop the windows from automatically raising upon
  514. entry?}
  515. Specify the following in your .emacs file:
  516. \begin{verbatim}
  517.     (setq auto-raise-screen 'minibuf)
  518. \end{verbatim}
  519. This makes the minibuffer raise when an Epoch edit window is
  520. entered; if you don't want the minibuffer to raise itself either, do
  521. the following instead:
  522. \begin{verbatim}
  523.     (setq auto-raise-screen nil)
  524. \end{verbatim}
  525. \node How do I change the cursor?, How do I define edit screen attributes on a per-mode basis?, How do I stop the windows from automatically raising upon entry?, Windows
  526. \cindex{How do I change the cursor?}
  527. \cindex{Cursor, changing it}
  528. \cindex{Changing the cursor}
  529. \subsection{How do I change the cursor?}
  530. Another noticeable change from GNU Emacs is the cursor glyph (which is
  531. a pencil shape).  To change this to a more normal-appearing arrow
  532. shape, put this in your .emacs file:
  533. \begin{verbatim}
  534.     (cursor-glyph 68)
  535.     (cursor-glyph 68 (epoch::minibuf-screen))
  536.     (push '(cursor-glyph . 68) epoch::screen-properties)
  537. \end{verbatim}
  538. NOTE: You can specify a different cursor glyph for the minibuffer,
  539. if you like.
  540. There are also X resources for the screen and minibuffer cursor
  541. glyphs; equivalent to the above elisp code would be the following (in
  542. your .Xdefaults file):
  543. \begin{example}    
  544.     epoch.screen.cursor.glyph: 68
  545.     epoch.minibuf.cursor.glyph: 68
  546. \end{example}
  547. For either of these approaches, any valid cursor ID number will do; to
  548. see the available cursors and their ID numbers, take a look at the
  549. file /usr/include/X11/cursorfont.h.
  550. (\pxref{How do I define edit screen attributes on a per-mode
  551. basis?}, for details on how to customize the cursor glyph based on
  552. the mode of a screen's initial buffer.)
  553. \node How do I define edit screen attributes on a per-mode basis?, How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?, How do I change the cursor?, Windows
  554. \cindex{How do I define edit screen attributes on a per-mode basis?}
  555. \cindex{Screen attributes}
  556. \cindex{Window attributes}
  557. \cindex{Per-mode window attributes}
  558. \subsection{How do I define edit screen attributes on a per-mode basis?}
  559. Or, how do I make my C++ edit windows come up with 48 lines and a big
  560. round dot for a cursor?
  561. You can define styles for new edit screens created with
  562. find-file-other-screen (which is, by default, bound to 'C-z 4 C-f' and
  563. 'C-z 4 f') based on the initial buffer's mode like so:
  564. \begin{verbatim}
  565.     (setq epoch-mode-alist
  566.       (append (list
  567.           (cons 'c-mode
  568.             (list
  569.               (cons 'geometry "80x52")
  570.               (cons 'cursor-glyph 94)))
  571.           (cons 'LaTeX-mode
  572.             (list
  573.               (cons 'geometry "90x48")
  574.               (cons 'cursor-glyph 58)))
  575.           (cons 'c++-mode
  576.             (list
  577.               (cons 'geometry "80x48")
  578.               (cons 'cursor-glyph 38))))
  579.         epoch-mode-alist))
  580. \end{verbatim}
  581. \node How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?, How do I iconify my entire Epoch session at once?, How do I define edit screen attributes on a per-mode basis?, Windows
  582. \cindex{How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?}
  583. \cindex{Window and icon names}
  584. \cindex{Icon and window names}
  585. \cindex{Names of icons and windows}
  586. \subsection{How do I make Epoch manage edit window and icon names based
  587. on the name of the current buffer(s)?}
  588. The base Epoch distribution doesn't support this, but there have
  589. been a number of small packages written that accomplish this.  There
  590. is one written by Derek Ney (derek@boingo.med.jhu.edu) up for
  591. anonymous FTP at ftp.ncsa.uiuc.edu (141.142.20.50) as
  592. /outgoing/marca/epoch/derek-title.el.Z.  Another one can be found in
  593. the epoch sources at ftp.uu.net (in the directory
  594. /languages/emacs-lisp/epoch).
  595. \node How do I iconify my entire Epoch session at once?, Does Epoch support scrollbars?, How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?, Windows
  596. \cindex{How do I iconify my entire Epoch session at once?}
  597. \cindex{Iconifying all of epoch}
  598. \subsection{How do I iconify my entire Epoch session at once?}
  599. By default, 'C-z i' is bound to iconify-screen, which only iconifies
  600. the current edit window.  To iconify everything, define a small
  601. function iconify-everything in your .emacs file like so:
  602. \begin{verbatim}
  603.     (defun iconify-everything ()
  604.       "Iconify entire Epoch session at once."
  605.       (interactive)
  606.       (dolist (s (screen-list))
  607.         (iconify-screen s))
  608.       (iconify-screen 0)
  609.     )
  610. \end{verbatim}
  611. Then bind it to a key sequence (e.g. \key{C-z C-i}) like so:
  612. \begin{verbatim}
  613.     (global-set-key "\C-z\C-i" 'iconify-everything)
  614. \end{verbatim}
  615. \node Does Epoch support scrollbars?, How can I make more room for windows?, How do I iconify my entire Epoch session at once?, Windows
  616. \cindex{Does Epoch support scrollbars?}
  617. \cindex{Scrollbars, support of}
  618. \subsection{Does Epoch support scrollbars?}
  619. No; native support for scrollbars is a technical challenge that so far
  620. no one has taken up for either GNU Emacs or Epoch.
  621. Alternatively, pick up the widgets package from cs.uiuc.edu, in
  622. pub/epoch-files/widgets/widgets.tar.Z.  This is a Motif-only "widget
  623. server" that epoch can talk to.  It will produce a nice Motif
  624. scroll-bar on the side of your epoch screen.  It does a lot more, but
  625. as far as I can tell, that's all it does out of the box (i.e., without
  626. writing some lisp code).  Somebody correct me if I'm wrong, here.
  627. [Thanks to Pierre Bondono (bondono@vnet.ibm.com) for the following:]
  628. \cindex{Bondono, Pierre}
  629. Related to this, there is a ``scrolling concept'' inside the IMOUSE
  630. packages that may be of interest.  IMOUSE can be found via anonymous
  631. FTP from ireq-robot.hydro.qc.ca (131.195.2.130); see question H-1
  632. below.
  633. \node How can I make more room for windows?, , Does Epoch support scrollbars?, Windows
  634. \cindex{How can I make more room for windows?}
  635. \cindex{Window room}
  636. \cindex{Rooms}
  637. \cindex{Virtual Screens}
  638. \subsection{How can I make more room for windows?}
  639. My workstation's screen area is overwhelmed by all the windows I
  640. reate in my Epoch editing sessions.  How can I squeeze more windows
  641. into my working environment?
  642. This is only a half-facetious question; there's only room on most
  643. workstation screens (usually 1024x768 or 1280x1024 pixels in area) for
  644. a couple of windows with decent-sized fonts.  To help alleviate the
  645. discomfort of cramped space, try the 'tvtwm' window manager.  (I sound
  646. like a cough-drop commercial.)
  647. Tvtwm, a superset of the twm window manager, allows windows to be
  648. placed on a virtual root window that can be of any size (for example,
  649. 3000 by 3000 pixels).  This virtual root can be navigated via tvtwm's
  650. 'panner', a reduced-size overview of your entire environment.
  651. Tvtwm can be found on your local comp.sources.x archive or in the
  652. X11R4 and X11R5 distributions.  Try anonymous FTP to ftp.uu.net
  653. (137.39.1.9) in /usenet/comp.sources.x.
  654. For those people that actually like the OpenLook window manager :-),
  655. a similarly modified version of Olwm can be found in ftp.uu.net
  656. /usenet/comp.sources.x/volume14/olvwm (and a lot of other places,
  657. too).
  658. People running on HP workstations can use the rooms metaphor built
  659. into the vuewm.  A similar, but less powerful alternative is the vr
  660. program in the contrib directory at export.lcs.mit.edu.  It, however,
  661. doesn't support spreading epoch windows around different rooms.
  662. \node Colors and Fonts, Menus, Windows, Top
  663. \cindex{Colors and Fonts}
  664. \section{Colors and Fonts}
  665. \begin{menu}
  666. * How do I interactively select my foreground color?::
  667. * How do I switch fonts interactively?::
  668. * How can I associate a certain foreground color with a file?::
  669. * How do I design my own really funky technicolor modeline?::
  670. * How do I replace the mouse region selection underlining with a different style?::
  671. \end{menu}
  672. \node How do I interactively select my foreground color?, How do I switch fonts interactively?, , Colors and Fonts
  673. \cindex{How do I interactively select my foreground color?}
  674. \cindex{Foreground color, interactively setting}
  675. \cindex{Interactively setting foreground color}
  676. \subsection{How do I interactively select my foreground color?}
  677. First, define a style for each of your desired foreground colors in
  678. your .emacs file, like so:
  679. \begin{verbatim}
  680.     (setq red-style (make-style))
  681.     (set-style-foreground red-style "red")
  682. \end{verbatim}
  683. Then, define a short command 'goto-style' like so:
  684. \begin{verbatim}
  685.     (defun goto-style (newstyle)
  686.       "Set current buffer to a given font NEWSTYLE."
  687.       (setq buffer-style newstyle)
  688.       (redraw-display))
  689. \end{verbatim}
  690. Next, bind commands to keys like so:
  691. \begin{verbatim}
  692.     (global-set-key "\C-c1" (definteractive (goto-style red-style)))
  693. \end{verbatim}
  694. This binds a command that changes the current foreground color to red
  695. to the key sequence \key{C-c 1}.
  696. The following function allows you to interactive specify a new color
  697. for the current buffer's foreground:
  698. \begin{verbatim}
  699.     (defun set-foreground (newfg)
  700.       "Set current foreground color to NEWFG."
  701.       (interactive "sForeground color: ")
  702.       (set-style-foreground buffer-style newfg)
  703.       (redraw-display))
  704. \end{verbatim}
  705. This function is activated by typing:
  706. \begin{example}
  707.     M-x set-foreground
  708. \end{example}
  709. Or, it can be bound to a key like so:
  710. \begin{verbatim}
  711.     (global-set-key "\C-z\C-s" 'set-foreground)
  712. \end{verbatim}
  713. \node How do I switch fonts interactively?, How can I associate a certain foreground color with a file?, How do I interactively select my foreground color?, Colors and Fonts
  714. \cindex{How do I switch fonts interactively?}
  715. \cindex{Fonts, switching interactively}
  716. \cindex{Switching fonts interactively}
  717. \cindex{Changing fonts interactively}
  718. \subsection{How do I switch fonts interactively?}
  719. To change fonts, you don't have to define new styles.  Just define a
  720. short command 'goto-font', like so:
  721. \begin{verbatim}
  722.     (defun goto-font (newfont)
  723.       "Set current buffer to a given font NEWFONT."
  724.       (font newfont)
  725.       (redraw-display))
  726. \end{verbatim}
  727. Then, bind commands to keys like so:
  728. \begin{verbatim}
  729.     (global-set-key "\C-c1" (definteractive (goto-font "8x13")))
  730. \end{verbatim}
  731. This changes the current edit window's font to "8x13" when the key
  732. sequence 'C-c 1' is entered.
  733. The following function allows you to interactively input a font name:
  734. \begin{verbatim}
  735.     (defun set-font (newfont)
  736.       "Set current font to NEWFONT."
  737.       (interactive "sFont name: ")
  738.       (font newfont)
  739.       (redraw-display))
  740. \end{verbatim}
  741. This function is activated by typing:
  742. \begin{example}
  743.     M-x set-font
  744. \end{example}
  745. Or, it can be bound to a key like so:
  746. \begin{verbatim}
  747.     (global-set-key "\C-z\C-s" 'set-font)
  748. \end{verbatim}
  749. If the font you specify with either of these methods isn't valid for
  750. your X server (i.e. if the font doesn't exist in a directory listed in
  751. your X server's font path and in that directory's fonts.dir file, or
  752. isn't available from the font server if you're running X11R5), you
  753. will get this message in your minibuffer:
  754. \begin{example}
  755.   Bad font name
  756. \end{example}
  757. Font names are ordinary X font names; for example, a 14-point non-bold
  758. non-italic Helvetica font can be referred to as:
  759. \begin{example}
  760.   "*helvetica-medium-r-normal--14*"
  761. \end{example}
  762. The standard X client 'xlsfonts' will give you a list of the fonts
  763. registered with your X server.  The standard X client 'xfontsel' lets
  764. you interactively put together an X font specification string based on
  765. individual attributes (e.g., family, size).
  766. \node How can I associate a certain foreground color with a file?, How do I design my own really funky technicolor modeline?, How do I switch fonts interactively?, Colors and Fonts
  767. \cindex{How can I associate a certain foreground color with a file?}
  768. \cindex{Files, associating colors with}
  769. \cindex{Associating colors with files}
  770. \cindex{Coloring files}
  771. \subsection{How can I associate a certain foreground color with a file?}
  772. So that every time I load that file my foreground color is
  773. automatically set?
  774. You can easily do this by using GNU Emacs' ability to handle file
  775. variables.  For example, if you have defined style 'red-style' to
  776. specify a red foreground color, and want file 'foobar.c' to always
  777. have the foreground color red, add this to the bottom of 'foobar.c':
  778. \begin{verbatim}
  779.     ^L
  780.     /*
  781.     Local Variables:
  782.     buffer-style: red-style
  783.     End:
  784.     */
  785. \end{verbatim}
  786. NOTE: '^L' is a newline character; you can enter one in an edit
  787. buffer by typing \key{C-q C-l}.
  788. Then, whenever 'foobar.c' is loaded, the variable 'buffer-style' will
  789. be set to 'red-style', and as a result the foreground color for that
  790. buffer will be red.
  791. \node How do I design my own really funky technicolor modeline?, How do I replace the mouse region selection underlining with a different style?, How can I associate a certain foreground color with a file?, Colors and Fonts
  792. \cindex{How do I design my own really funky technicolor modeline?}
  793. \cindex{Modeline, customizing and coloring}
  794. \subsection{How do I design my own really funky technicolor modeline?}
  795. Using the tried-and-true Learning By Example(tm) educational method,
  796. I'll just give the (heavily commented) elisp code I use to define my
  797. own customized modeline:
  798. \begin{verbatim}
  799.   ;; A style to emphasize things I find important
  800.   (defvar mode:*hilight-style*  (make-style)
  801.     "Style for modeline hilights"
  802.   (let ((s1 mode:*hilight-style*))
  803.    ;; Do something reasonable if we're on a monochrome screen
  804.     (if (> (epoch::number-of-colors) 2)
  805.         (progn
  806.       (set-style-foreground s1 "#83558c")
  807.       (set-style-background s1 (foreground)))
  808.       (progn
  809.       (set-style-foreground s1 (background))
  810.       (set-style-background s1 (foreground))))
  811.     (set-style-font s1 "*helvetica-bold-r-*-*-12-*")
  812.   ;; A style for normal modeline contents -- inverted from normal
  813.   ;;  buffer
  814.   (defvar mode:*normal-style* (make-style)
  815.     "Normal modeline style"
  816.   (let ((s2 mode:*normal-style*))
  817.     (set-style-foreground s2 (background))
  818.     (set-style-background s2 (foreground))
  819.     (set-style-font s2 "*helvetica-medium-r-*-*-12*")
  820.   ;; define  a simpler-looking modeline format
  821.   (setq default-mode-line-format
  822.     (list
  823.       ""
  824.       'mode:*normal-style*
  825.       'mode-line-modified
  826.       ;; Highlight the buffer name
  827.       'mode:*hilight-style*
  828.       " %17b"
  829.       'mode:*normal-style*
  830.       "   "
  831.       'global-mode-string
  832.       "   %[("
  833.       'mode-name 'minor-mode-alist "%n" 'mode-line-process
  834.       ")%]--"
  835.       ;; Highlight where we are in the buffer
  836.       'mode:*hilight-style*
  837.       (cons -3 "%p")
  838.       'mode:*normal-style*
  839.       "-%-"
  840.       )
  841.     )
  842. \end{verbatim}
  843. \node How do I replace the mouse region selection underlining with a different style?, , How do I design my own really funky technicolor modeline?, Colors and Fonts
  844. \cindex{How do I replace the mouse region selection underlining with a different style?}
  845. \cindex{Mouse selection attributes, changing}
  846. \cindex{Changing mouse selection attributes}
  847. \subsection{How do I replace the mouse region selection underlining with
  848. a different style?}
  849. The appearance of the region underlined with the mouse is described
  850. by the style in the variable "motion::style".  You can use the normal
  851. style functions to manipulate this variable.  For example, you can
  852. turn off underlining with the following:
  853. \begin{verbatim}
  854.     (set-style-underline motion::style nil)
  855. \end{verbatim}
  856. Now, nothing will show up.  To have just the text foreground color
  857. change on mouse selection, do:
  858. \begin{verbatim}
  859.     (set-style-foreground motion::style "yellow")
  860.     (set-style-background motion::style (background))
  861. \end{verbatim}
  862. Replace "yellow" with any desired X color name.
  863. To have the selected region appear as reverse video, try:
  864. \begin{verbatim}
  865.     (set-style-foreground motion::style (background))
  866.     (set-style-background motion::style (foreground))
  867. \end{verbatim}
  868. To have the selected region appear with an overlayed diagonal stipple
  869. pattern, try:
  870. \begin{verbatim}
  871.     (set-style-background motion::style "red")
  872.     (set-style-background-stipple motion::style
  873.       (make-bitmap 4 4 "\\167\\273\\335\\356"))
  874. \end{verbatim}
  875. The style bound to motion::style has default settings as follows:
  876. \begin{verbatim}
  877.     (set-style-foreground motion::style (foreground))
  878.     (set-style-background motion::style (background))
  879.     (set-style-underline motion::style (foreground))
  880. \end{verbatim}
  881. \node Menus, Keyboard, Colors and Fonts, Top
  882. \cindex{Menus}
  883. \section{Menus}
  884. \begin{menu}
  885. * Does Epoch support popup menus or menubars?::
  886. \end{menu}
  887. \node Does Epoch support popup menus or menubars?, , , Menus
  888. \cindex{Does Epoch support popup menus or menubars?}
  889. \cindex{Menubars, support of}
  890. \cindex{Popup menus, support of}
  891. \subsection{Does Epoch support popup menus or menubars?}
  892. The base Epoch distribution does not have native support for popup
  893. menus or menubars.  However, there are other ways to use menus with
  894. Epoch.
  895. \subsubsection{Use gwm}
  896. If you're running the window manager GWM (available via anonymous
  897. FTP to export.lcs.mit.edu (18.24.0.12) in /contrib/gwm), you can use
  898. the Epoch contrib 'wm-menu' package (found in the contrib tar file on
  899. cs.uiuc.edu) to have GWM provide menus that pass messages to Epoch.
  900. \subsubsection{Use another window manager with xse or gnudoit}
  901. If you're running a window manager that has user-specifiable menus
  902. (as all of the common window managers do), you can perform particular
  903. commands from a menu.  These commands can communicate with epoch, and
  904. get it to do things.
  905. One way to do this is to use "xse" (XSendEvent) and send characters
  906. that happen to be bound to the commands you want to activate.  To bind
  907. arbitrary commands to menu entries in this manner, you need to define
  908. a unique keystroke pattern (with global-set-key) for each command and
  909. then send that keystroke pattern with xsendevent via the menu.  See
  910. the section on rebind-key (below) for more information on this
  911. technique.  (Of course, you are also free to have xsendevent send a
  912. key sequence like 'ESC x u n d o RET' directly to Epoch.)
  913. A better way is to use gnudoit, which communicates to gnuserv.
  914. Gnuserv, gnuclient, and gnudoit are replacements for emacsclient and
  915. its server.  With gnudoit, you can pass in an Emacs Lisp form to
  916. evaluate, rather than the less readable X Event description for a key
  917. binding.
  918. Some window managers (such as TWM) do not allow the user to specify
  919. client-specific menus -- you can only add menus to all clients.  This
  920. is not an ideal solution, since all windows (Epoch or not) in the
  921. session will have the menu attached to them, but it does work and is
  922. quite convenient for use with Epoch.  Other window managers (Mwm in
  923. particular) allow you to specify a menu on a client-by-client basis.
  924. Thus, you can have different menus on terminal windows from on Epoch
  925. (Mwm will even let you have different menus on different screens and
  926. on the minibuffer).
  927. Here's a couple of sample Twm menu descriptions.  Note that these
  928. would show up on all applications that have title bars.
  929. \begin{verbatim}
  930.   menu "epoch"
  931.     "Epoch Menu"   f.title
  932.     "Undo"         ! "xse 'Ctrl<Key>x' '<Key>u'"
  933.     "Quit"         ! "xse 'Ctrl<Key>x' 'Ctrl<Key>c'"
  934.   LeftTitleButton "~/epochbitmap.bm" = f.menu "epoch"
  935. \end{verbatim}
  936. Or, using gnudoit (notice the more readable function names):
  937. \begin{verbatim}
  938.   menu "epoch"
  939.     "Epoch Menu"   f.title
  940.     "Undo"         ! "gnudoit '(undo)'"
  941.     "Quit"         ! "gnudoit '(save-buffers-kill-emacs)'"
  942.   LeftTitleButton "~/epochbitmap.bm" = f.menu "epoch"
  943. \end{verbatim}
  944. Here's an equivalent Mwm menu, along with resources that will place
  945. the menu only on Epoch windows.
  946. This goes in your Mwm config file:
  947. \begin{verbatim}
  948.   Menu EpochMenu
  949.       "Epoch" f.title
  950.       "Undo"  ! "gnudoit '(undo)'"
  951.       "Quit"  ! "gnudoit '(save-buffers-kill-emacs)'"
  952. \end{verbatim}
  953. This goes in your X defaults:
  954. \begin{verbatim}
  955.   Mwm*epoch*windowMenu: EpochMenu
  956. \end{verbatim}
  957. Note the "*epoch*" -- this is the class name of the screen.  If you
  958. use the -name or -rn options (as described in A-6), this name will
  959. change.  See the "class" attribute of screens in the epoch manual for
  960. more on this.
  961. You can get xsendevent at export.lcs.mit.edu (18.24.0.12) in /contrib
  962. or at ftp.uu.net (137.39.1.9) in /packages/X/contrib.  Gnuserv,
  963. gnuclient and gnudoit are available at ee.utah.edu, in
  964. /emacs/etc/gnuserv (and probably other sites, too, but I can't find
  965. any with Xarchie -- anyone got a good one?).
  966. [From Philippe Bondono (bondono@vnet.ibm.com)., with Mwm and
  967. gnuclient additions by Brook]
  968. \subsubsection{Use another client}
  969. A completely different technique involves using a separate X client
  970. that posts a menu and has Epoch (or for that matter, GNU Emacs)
  971. receive commands from it.  One example of this technique is
  972. /gnu/emacs/buttons.tar.Z from anonymous FTP to aix370.rrz.uni-koeln.de
  973. (134.95.132.2).
  974. A variant method uses xmenu or xmenu2, which are available at any
  975. comp.sources.x archive.  (If you don't know of such an archive, try
  976. anonymous FTP to ftp.uu.net (137.39.1.9) in /usenet/comp.sources.x.)
  977. After you have compiled xmenu or xmenu2, define the following function
  978. in your .emacs file:
  979. \begin{verbatim}
  980.   (defun interpret-output (process output)
  981.     (command-execute (car (read-from-string output))))
  982. \end{verbatim}
  983. Then you can define other functions that make specific menus, with
  984. menu entries bound to commands, like the following example shows:
  985. \begin{verbatim}
  986.   (defun make-menu ()
  987.     (interactive)
  988.     (set-process-filter (start-process "xmenu" nil
  989.         "/usr/local/bin/xmenu" "-heading" "Epoch Menu"
  990.         "Undo=undo")
  991.       'interpret-output))
  992. \end{verbatim}
  993. This example uses /usr/local/bin/xmenu to post a one-entry menu to the
  994. screen; the menu entry's label is "Undo" and the action it triggers in
  995. Epoch is 'undo'.  Specify as many "Label=action" pairs as you like as
  996. part of the start-process command.
  997. [From Philippe Bondono (bondono@vnet.ibm.com).]
  998. If you use XView/Open Windows, Dev Joneja (dj7@cunixf.cc.columbia.edu)
  999. has written a menu/button client similar to xmenu; it's available via
  1000. anonymous FTP from ftp.ncsa.uiuc.edu (141.142.20.50) as
  1001. /outgoing/marca/epoch/xvmenu.tar.Z.
  1002. \subsubsection{Use Hyperbole}
  1003. Bob Weiner (rsw@cs.brown.edu) says the following concerning menus
  1004. within Hyperbole:
  1005. \begin{quote}
  1006.   If you use Hyperbole, you know what the Smart Key system is, context
  1007.   sensitive key bindings for many Emacs modes and subsystems.  There is
  1008.   a Smart Menu system that goes along with this but has not been
  1009.   released because it needs some additional menus and some integration
  1010.   work.  It is window manager and window system independent, works under
  1011.   Emacs, with a slightly customized version that can highlight selected
  1012.   menu items and display menus in a separate Epoch screen, and is
  1013.   written entirely in Elisp, so no patching is needed.  It provides much
  1014.   easier subsystem access for novices and experienced users and has been
  1015.   in use at a few sites for the last several years.
  1016.   I'd like to get it in a form for release but won't have the time for
  1017.   several months.  If an experienced Elisp programmer wanted to
  1018.   integrate it with Hyperbole and make any other changes, I [Bob, not
  1019.   Brook] would be willing to send it out and coordinate on and test the
  1020.   final changes.
  1021. \end{quote}
  1022. See the list of FTP sites below for more information on Hyperbole.
  1023. \node Keyboard, Highlighting, Menus, Top
  1024. \cindex{Keyboard}
  1025. \section{Keyboard}
  1026. \begin{menu}
  1027. * How do I make the backspace key work properly?::
  1028. * How can I use Page Up and Page Down keys?::
  1029. * How can I stop function keys from putting garbage in my buffer?::
  1030. * How do I turn the keyboard bell off?::
  1031. \end{menu}
  1032. \node How do I make the backspace key work properly?, How can I use Page Up and Page Down keys?, , Keyboard
  1033. \cindex{How do I make the backspace key work properly?}
  1034. \cindex{Backspace key not working}
  1035. \cindex{Broken backspace key}
  1036. \subsection{How do I make the backspace key work properly?}
  1037. This is actually a GNU Emacs question, but it's included in this FAQ
  1038. because it's probably more important to more people than all the other
  1039. questions here.  (One of the great mysteries of GNU Emacs is why the
  1040. backspace key _still_ doesn't do its job.)
  1041. Here are four ways to fix this:
  1042. \subsubsection{Use rebind-key}
  1043. Put this in your .emacs file:
  1044. \begin{verbatim}
  1045.     (rebind-key "BackSpace" nil "\C-?")
  1046. \end{verbatim}
  1047. This is the cleanest Epoch-specific solution.  It rebinds
  1048. the X representation for the backspace key directly to that of the
  1049. delete key.
  1050. [Thanks to Joe Wells (jbw@bigbird.bu.edu).]\cindex{Wells, Joe}
  1051. Ole Vignes (VIGNES@BG.HBG.HYDRO.NO) suggests this as a slight
  1052. variation:\cindex{Vignes, Ole}
  1053. \begin{quote}
  1054.   I have found that the following definitions for the backspace key 
  1055.   work slightly better than those described in the FAQ file:
  1056. \begin{verbatim}
  1057.      (rebind-key "BackSpace" nil    "\177")
  1058.      (rebind-key "BackSpace" 'shift "\177")
  1059. \end{verbatim}
  1060.   Sending the character "\\177" (DEL) instead of a sequence like
  1061.   "\\C-^bdc" has the advantage that the backspace key can be used to
  1062.   rub out characters inside an isearch. This does not work with the
  1063.   other method. This is particularly handy for me, since I have
  1064.   rebound the Delete key to do the same as "\\C-d", delete-char. The
  1065.   second line is to make sure the backspace key also works when Caps
  1066.   Lock  is on.  :-)
  1067. \end{quote}
  1068. \subsubsection{Use global-set-key and rebind-key}
  1069. Put this in your .emacs file:
  1070. \begin{verbatim}
  1071.     (global-set-key "\C-^bdc" 'backward-delete-char-untabify)
  1072.     (rebind-key "BackSpace" nil "\C-^bdc")
  1073. \end{verbatim}
  1074. This rebinds the X representation for the backspace key to the
  1075. appropriate command for deleting a character backward.  Like the first
  1076. method, this is Epoch-specific.
  1077. If you don't like to have your backspace key also untabify (i.e.,
  1078. convert tags to spaces on the fly), use this instead of the previous
  1079. global-set-key:
  1080. \begin{verbatim}
  1081.     (global-set-key "\C-^bdc" 'backward-delete-char)
  1082. \end{verbatim}
  1083. \subsubsection{Use global-set-key}
  1084. Put this in your .emacs file:
  1085. \begin{verbatim}
  1086.     (global-set-key "\C-h" 'backward-delete-char-untabify)
  1087.     (global-set-key "\C-xh" 'help-command) ; override mark-whole-buffer
  1088. \end{verbatim}
  1089. This makes C-h (the backspace key as well as the Control-h key
  1090. sequence) delete characters backward, and shifts responsibility for
  1091. help to C-x h.  This fix will work for GNU Emacs as well as Epoch.
  1092. If you don't like to have your backspace key also untabify (i.e.,
  1093. convert tabs to spaces on the fly), use this instead of the previous
  1094. global-set-key for C-h:
  1095. \begin{verbatim}
  1096.     (global-set-key "\C-h" 'backward-delete-char)
  1097. \end{verbatim}
  1098. \subsubsection{Use xmodmap}
  1099. Outside of Epoch, you can change the X representation of the
  1100. BackSpace key into a Delete by doing this:
  1101. \begin{example}
  1102.     xmodmap -e "keysym BackSpace = Delete"
  1103. \end{example}
  1104. This approach has the disadvantage of not being done inside
  1105. of Epoch for those who prefer customizing lisp code to customizing
  1106. their system environments.
  1107. [Thanks to Joe Wells (jbw@bigbird.bu.edu).]\cindex{Wells, Joe}
  1108. \node How can I use Page Up and Page Down keys?, How can I stop function keys from putting garbage in my buffer?, How do I make the backspace key work properly?, Keyboard
  1109. \cindex{How can I use Page Up and Page Down keys?}
  1110. \cindex{Using Page Up and Page Down}
  1111. \cindex{Page up or down keys, using}
  1112. \subsection{How can I use Page Up and Page Down keys?}
  1113. How do I make the keys marked "Page Up" and "Page Down" on an IBM
  1114.  Selectric-style keyboard do their jobs?
  1115. Using the key rebinding facility discussed below, you can put the
  1116. following two lines in your .emacs file:
  1117. \begin{verbatim}
  1118.     (rebind-key "Prior" nil "\M-v") ; Note Prior, not Page Up.
  1119.     (rebind-key "Next" nil "\C-v")  ; Note Next, not Page Down.
  1120. \end{verbatim}
  1121. Similarly, if you want "Home" and "End" to go to the beginning and end
  1122. of the current buffer respectively, do:
  1123. \begin{verbatim}
  1124.     (rebind-key "Home" nil "\M-<")
  1125.     (rebind-key "End" nil "\M->")
  1126. \end{verbatim}
  1127. \subsubsection{How do I bind keys in the numeric keypad on an IBM
  1128. Selectric-style
  1129.  keyboard to their obvious functions (arrow movement, home, end, etc.)?}
  1130. Put these lines in your .emacs file:
  1131. \begin{verbatim}
  1132.     (rebind-key "KP_Home" nil "\M-<")
  1133.     (rebind-key "KP_Up" nil "\C-p")
  1134.     (rebind-key "KP_Prior" nil "\M-v")
  1135.     (rebind-key "KP_Left" nil "\C-b")
  1136.     (rebind-key "KP_Begin" nil "\C-l")
  1137.     (rebind-key "KP_Right" nil "\C-f")
  1138.     (rebind-key "KP_End" nil "\M->")
  1139.     (rebind-key "KP_Down" nil "\C-n")
  1140.     (rebind-key "KP_Next" nil "\C-v")
  1141. \end{verbatim}
  1142. NOTE: This makes the keypad arrow keys work, the keypad PgUp/PgDown
  1143. work, and the keypad Home/End go to the beginning/end of the buffer.
  1144. Other keys appropriate for rebinding in a Selectric-style numeric
  1145. keypad include KP_Divide, KP_Multiply, KP_Subtract, KP_Add, KP_Enter,
  1146. KP_Insert, and KP_Delete; see below for more details.
  1147. \subsubsection{What general facilities does Epoch provide for rebinding function
  1148.  keys, and how do I use them?}
  1149. The rebind-key function allows you to rebind any keycode to a new
  1150. string.  An example is probably best to show how this works.  To make
  1151. the key marked "Page Up" (on IBM Selectric-style keyboards) actually
  1152. move the current buffer up a page (like M-v), do:
  1153. \begin{verbatim}
  1154.     (rebind-key "Prior" nil "\M-v")
  1155. \end{verbatim}
  1156. Note that "Prior" is the actual X keysym name for the "Page Up" key;
  1157. to see the X keysym names, refer to /usr/include/X11/keysymdef.h (or
  1158. $OPENWINHOME/include/X11/keysymdef.h on OpenWindows systems).
  1159. (Disregard the leading XK_ in keysymdef.h's definitions for Epoch's
  1160. purposes; thus, X11's "XK_Prior" becomes Epoch's "Prior".  To find out
  1161. which keys are actually active for your keyboard and server, use the
  1162. command "xmodmap -pk".)
  1163. The standard function keys are named F1 through F12, the function keys
  1164. on the left side of a Sun-style keyboard are named L1 through L10, and
  1165. so on.  The keypad apparently cannot be addressed by KP_0 through KP_9
  1166. but must be referenced by names like KP_Left, KP_Up, and so on.
  1167. A simple two-step approach for binding function keys to commands
  1168. involves binding a key to an arbitrary GNU Emacs key encoding (in the
  1169. following example, C-^ k 1) and then binding that encoding to the
  1170. command.  An example that binds the function key marked "End" to an
  1171. arbitrary command (in this case, end-of-line) follows:
  1172. \begin{verbatim}
  1173.     (rebind-key "End" 0 "\C-^k1")
  1174.     (global-set-key "\C-^k1" 'end-of-line)
  1175. \end{verbatim}
  1176. Note that the above is only an example of the two-step method; if you
  1177. really want "End" to do 'end-of-line, do the obvious instead:
  1178. \begin{verbatim}
  1179.     (rebind-key "End" 0 "\C-e")
  1180. \end{verbatim}
  1181. The rebind-key command allows modifiers (e.g. shift, control) to be
  1182. specified; the following example binds Control-"End" to an arbitrary
  1183. command (in this case, end-of-buffer):
  1184. \begin{verbatim}
  1185.     (rebind-key "End" 'control "\C-^Ck1")
  1186.     (global-set-key "\C-^Ck1" 'end-of-buffer)
  1187. \end{verbatim}
  1188. For an example of these principles in action, see the file
  1189. 'amc/keys.el' in the 3.2 contrib directory (which is still up for
  1190. anonymous ftp at cs.uiuc.edu as a separate .tar.Z file) or at
  1191. ftp.ncsa.uiuc.edu in /outgoing/marca/epoch.
  1192. [Thanks to Alan Carroll (carroll@cs.uiuc.edu).]\cindex{Carroll, Alan}
  1193. \node How can I stop function keys from putting garbage in my buffer?, How do I turn the keyboard bell off?, How can I use Page Up and Page Down keys?, Keyboard
  1194. \cindex{How can I stop function keys from putting garbage in my buffer?}
  1195. \cindex{Function keys insert garbage}
  1196. \cindex{Garbage from function keys}
  1197. \subsection{How can I stop function keys from putting garbage in my
  1198. buffer?}
  1199. I want Epoch to disregard accidental presses of function keys that
  1200. insert spurious characters (e.g., "-1~") into the buffer.  Does Epoch
  1201. perchance have some magical way to make this happen?
  1202. Perchance, Epoch does.  The variable epoch::function-key-mapping, if
  1203. set to nil, makes Epoch disregard such keys, unless they're explicitly
  1204. rebound with rebind-key.  You can set this in your .emacs file like
  1205. \begin{verbatim}
  1206.     (setq epoch::function-key-mapping nil)
  1207. \end{verbatim}
  1208. [Thanks to Alan Carroll (carroll@cs.uiuc.edu).]\cindex{Carroll, Alan}
  1209. \node How do I turn the keyboard bell off?, , How can I stop function keys from putting garbage in my buffer?, Keyboard
  1210. \cindex{How do I turn the keyboard bell off?}
  1211. \cindex{Keyboard bell, turning it off}
  1212. \cindex{Bell, turning it off}
  1213. \subsection{How do I turn the keyboard bell off?}
  1214. The easy answer is to put the following line in your .emacs file:
  1215. \begin{verbatim}
  1216.     (setq epoch::bell-volume -50)
  1217. \end{verbatim}
  1218. Another possibility, if you like visual bells (i.e., having the
  1219. entire edit window flash reverse video instead of hearing an audible
  1220. beep), is to put the following in your .emacs file:
  1221. \begin{verbatim}
  1222.     (epoch::set-bell t)
  1223. \end{verbatim}
  1224. The malicious answer, for those who, like myself, never want to hear
  1225. another beep for the rest of time, is to modify src/x11term.c in the
  1226. Epoch distribution; just change the line that reads:
  1227. \begin{verbatim}
  1228.     XBell (xs->display,volume);
  1229. \end{verbatim}
  1230. \begin{verbatim}
  1231.     /* XBell (xs->display,volume); */
  1232. \end{verbatim}
  1233. Then recompile.
  1234. \node Highlighting, Epoch-Specific Emacs Lisp Packages, Keyboard, Top
  1235. \cindex{Highlighting}
  1236. \section{Highlighting}
  1237. \begin{menu}
  1238. * How do I highlight regions of text in a buffer with different styles?::
  1239. * Can I use highlighting packages on monochrome displays?::
  1240. \end{menu}
  1241. \node How do I highlight regions of text in a buffer with different styles?, Can I use highlighting packages on monochrome displays?, , Highlighting
  1242. \cindex{How do I highlight regions of text in a buffer with different styles?}
  1243. \cindex{Highlighting regions of text}
  1244. \cindex{Text highlighting}
  1245. \subsection{How do I highlight regions of text in a buffer with
  1246. different styles?}
  1247. While the current Epoch distribution contain plenty of support for
  1248. zones and styles, the enabling mechanisms that make syntax-directed
  1249. highlighting possible, no intrinsic support for such highlighting is
  1250. provided.  This situation may change in subsequent releases of Epoch.
  1251. Three packages that provide varying degrees of support for
  1252. syntax-directed highlighting are:
  1253. \begin{description}
  1254. \item[tek-highlight-2.0.tar.Z] (available from archive.cis.ohio-state.edu
  1255.   or ftp.ncsa.uiuc.edu, see below), which supports comment highlighting
  1256.   in source code as well as support for the Info documentation browser,
  1257.   various mail and news packages, and manual pages.
  1258.   Version 2.1.2 (beta) of tek-highlight is available for anonymous ftp
  1259.   as /rle-vlsi.mit.edu:pub/tek-highlight-2.1.1.beta.shar or
  1260.   /18.62.0.214:pub/tek-highlight-2.1.1.beta.shar 
  1261.   and
  1262.   /rle-vlsi.mit.edu:pub/tek-highlight-diff-2.1.1.beta-2.1.2.beta.shar
  1263.   /18.62.0.214:pub/tek-highlight-diff-2.1.1.beta-2.1.2.beta.shar
  1264.   rwhitby@research.canon.oz.au says:
  1265.   \begin{quote}
  1266.     My thanks go to Luis Miguel Silveira for allowing the use of his
  1267.     machine for ftp access.\cindex{Silveira, Luis Miguel}
  1268.     Please mail any bug reports (and documentation additions) to:
  1269.     rwhitby@research.canon.oz.au 
  1270.   \end{quote}
  1271. \item[lightbrite.tar.Z] (available from ftp.ncsa.uiuc.edu, see below),
  1272.   written by Marc Andreessen to allow per-mode regexp-based
  1273.   highlighting.  Thus, you can have all #define's/#endif's in red,
  1274.   setq's and defun's in green, int/float/double's in yellow, '-->'s in
  1275.   purple, and so on.  Here's something from its README:
  1276. \begin{itemize}
  1277.    \item Accurate comment highlighting.
  1278.    \item Regexp touchup highlighting.
  1279.    \item Easy specification of visual attributes of multiple
  1280.       highlighting styles.
  1281.    \item Instant highlighting (as you type) with adjustable
  1282.       responsiveness.
  1283.    \item Buffer size thresholds for both comment and touchup
  1284.       highlighting.
  1285.    \item Use of minor mode and local keymaps.
  1286.    \item Re-highlight visible screen, current paragraph, current
  1287.       function, immediate area, or entire buffer.
  1288.    \item Large assortment of default mode-specific highlighting
  1289.       patterns.
  1290.    \item Automatic highlight on find-file and/or write-file.
  1291.    \item Special handling of mail and rmail modes.
  1292.    \item Works with both Epoch and Lucid Emacs transparently.
  1293. \end{itemize}
  1294. \item[hilit.el.Z] (most recent version was posted to gnu.emacs.souces and is
  1295.   available from ftp.ncsa.uiuc.edu, see below), which provides
  1296.   source-code comment and regexp highlighting.
  1297. \end{description}
  1298. \node Can I use highlighting packages on monochrome displays?, ,How do I highlight regions of text in a buffer with different styles? , Highlighting
  1299. \cindex{Can I use highlighting packages on monochrome displays?}
  1300. \cindex{Monochrome and highlighting}
  1301. \cindex{Highlighting and monochrome}
  1302. \subsection{Can I use highlighting packages on monochrome displays?}
  1303. Sure.  Most highlighting packages let you specify the attributes
  1304. (e.g., color, font, underlining) of the various styles they use.  For
  1305. example, here's how you could get Lightbrite to show comment
  1306. characters in a different font:
  1307. \begin{verbatim}
  1308.   (defvar brite::comment-styles '(("font" . "*courier-medium-r-normal-*-14-*"))
  1309.     "*Style specification list for comment style.")
  1310. \end{verbatim}
  1311. \xref{How do I highlight regions of text in a buffer with different styles?}
  1312. \node Epoch-Specific Emacs Lisp Packages, Other Resources, Highlighting, Top
  1313. \cindex{Epoch-Specific Emacs Lisp Packages}
  1314. \section{Epoch-Specific Emacs Lisp Packages}
  1315. \begin{menu}
  1316. * Where can I find Epoch-specific emacs lisp packages?::
  1317. * Where can I get a PostScript version of the Epoch manual?::
  1318. \end{menu}
  1319. \node Where can I find Epoch-specific emacs lisp packages?, Where can I get a PostScript version of the Epoch manual?, , Epoch-Specific Emacs Lisp Packages
  1320. \cindex{Where can I find Epoch-specific emacs lisp packages?}
  1321. \cindex{Emacs Lisp packages, locations}
  1322. \cindex{Finding Emacs Lisp packages for Epoch}
  1323. \subsection{Where can I find Epoch-specific emacs lisp packages?}
  1324. Try the following anonymous FTP sites for Epoch-specific emacs lisp
  1325. packages:
  1326. \begin{description}
  1327. \item[aix370.rrz.uni-koeln.de (134.95.132.2)]
  1328.     /gnu/emacs
  1329. \item[archive.cis.ohio-state.edu (128.146.8.52)]
  1330.     /pub/gnu/emacs/elisp-archive/elisp
  1331.     [This is main elisp-archive site; it is mirrored at
  1332.      ftp.uu.net (137.39.1.9) in /languages/emacs-lisp, among other places.
  1333.      Not much Epoch code exists here; in particular, a much more
  1334.      recent version of hilit.el.Z is at ftp.ncsa.uiuc.edu, below.]
  1335. \item[ftp.cs.buffalo.edu (128.205.32.3)]
  1336.     /pub
  1337.     [This is the distribution site for the new Dired, which will
  1338.      be included in Emacs v19; it includes support for Epoch.]
  1339. \item[ftp.ncsa.uiuc.edu (141.142.20.50)]
  1340.     /outgoing/marca/epoch
  1341.     [This is the previous FAQ maintainer's archive of Epoch code; the
  1342.      README file gives an overview of what he considers to be
  1343.      'essential' Epoch packages, and all of those packages
  1344.      are available there.  If he gets out of date on any of
  1345.      these and you notice it, please let him know.]
  1346. \item[icsi-ftp.berkeley.edu (128.32.201.55)]
  1347.     /pub/elisp
  1348. \item[ireq-robot.hydro.qc.ca (131.195.2.130)]
  1349.     /pub/emacs/lisp
  1350.     [This is the distribution site for the IMOUSE package.]
  1351. \item[wilma.cs.brown.edu (128.148.31.66)]
  1352.     /pub/hyperbole
  1353.     [This is the distribution site for the Hyperbole hypertext
  1354.      system, which includes support for Epoch.  Also available
  1355.      separately from here is the wrolo 'rolodex' package, one of the
  1356.      components of Hyperbole.]
  1357. \end{description}
  1358. Also see the contrib tar file found at cs.uiuc.edu, in the same
  1359. directory as the actual Epoch distribution.
  1360. Also watch the gnu.emacs.sources Usenet newsgroup, as well as the
  1361. epoch newsgroup/mailing list (see below).
  1362. Please volunteer the names of any sites not on this list.
  1363. \node Where can I get a PostScript version of the Epoch manual?, , Where can I find Epoch-specific emacs lisp packages?, Epoch-Specific Emacs Lisp Packages
  1364. \cindex{Where can I get a PostScript version of the Epoch manual?}
  1365. \cindex{Epoch manual in PostScript}
  1366. \cindex{PostScript version of Epoch manual}
  1367. \subsection{Where can I get a PostScript version of the Epoch manual?}
  1368. Use anonymous ftp to cs.uiuc.edu (128.174.252.1) in
  1369. /pub/epoch-files/epoch; get epoch-4.0.epoch-man.ps.Z.
  1370. \node Other Resources, Advanced Questions, Epoch-Specific Emacs Lisp Packages, Top
  1371. \cindex{Other Resources}
  1372. \section{Other Resources}
  1373. \begin{menu}
  1374. * What Epoch newsgroups/mailing lists are out there?::
  1375. * Where do I send bug reports?::
  1376. \end{menu}
  1377. \node What Epoch newsgroups/mailing lists are out there?, Where do I send bug reports?, , Other Resources
  1378. \cindex{What Epoch newsgroups/mailing lists are out there?}
  1379. \cindex{Newsgroups}
  1380. \cindex{Mailing lists}
  1381. \subsection{What Epoch newsgroups/mailing lists are out there?}
  1382. The Usenet newsgroup gnu.epoch.misc and the mailing list
  1383. epoch@cs.uiuc.edu are one and the same.  To join the mailing list,
  1384. send a request to epoch-request@cs.uiuc.edu.  (It is best to read the
  1385. newsgroup if you have access to it, to save on network resources and
  1386. the mailing list maintainer's time.)
  1387. For more general information about Epoch and GNU Emacs, see the list
  1388. of resources at the start of this file.
  1389. \node Where do I send bug reports?, , What Epoch newsgroups/mailing lists are out there?, Other Resources
  1390. \cindex{Where do I send bug reports?}
  1391. \cindex{Bugs, reporting}
  1392. \cindex{Reporting bugs}
  1393. \subsection{Where do I send bug reports?}
  1394. Either post to the newsgroup gnu.epoch.misc, or (equivalently) send
  1395. mail to epoch@cs.uiuc.edu (which is the newsgroup).
  1396. \node Advanced Questions, Epoch and GNU Emacs, Other Resources, Top
  1397. \cindex{Advanced Questions}
  1398. \section{Advanced Questions}
  1399. [NOTE: This section is at the end since the questions involve actual
  1400. source-code hacking or problems with specific machine configurations
  1401. that the FAQ moderator cannot personally verify and whose solutions will
  1402. probably involve some sort of hacking.  If these answers helped you,
  1403. please let me know.  If I don't hear of people finding these useful, I'm
  1404. going to remove them.]
  1405. \subsection{Problems with Meta on HPs}
  1406. Epoch 4.0b1 (or later) (as well as GNU Emacs 18.58) built
  1407. under  HP-UX 8.0 and 8.05 apparently don't recognize the Meta key as
  1408. Alt. How can this be fixed?
  1409. Bob Fisher (bob@fisher.depaul.edu) suggests the following command,
  1410. executed once per session, prior to starting Epoch:
  1411. \begin{verbatim}
  1412.           xmodmap -e "clear mod1"        \
  1413.                   -e "add mod1 = Meta_R" \
  1414.                   -e "add mod1 = Meta_L"
  1415. \end{verbatim}
  1416. \subsection{Problems with colors on multiple screens}
  1417. Why do all of Epoch's colors go away when Epoch is run on an
  1418. X11R5 server with multiple screens?
  1419. Dana Chee (dana@thumper.bellcore.com) reports that X11R5 has a new
  1420. SCREEN_RESOURCES property that allows/forces colors to only appear for
  1421. color screens, but Epoch doesn't look at this property.  This bug will
  1422. only bite you if you're running on a multi-screen system.  If it
  1423. happens, there is a workaround; see the xrdb manpage and the xrdb
  1424. option '-all'.
  1425. \subsection{The cursor disappears sometimes}
  1426. Even though Epoch 4.0b1 includes fixes to keep the cursor from
  1427. disappearing (as it does on occasion, especially in a shell, in Epoch
  1428. 4.0b0), the cursor still disappears sometimes.  Is there a fix for
  1429. this?
  1430. First, Epoch 4.0p0 has additional fixes for this problem which
  1431. presumably will supersede the fix given below.
  1432. According to Michael Thome (mthome@bbn.com), activating the XFlush
  1433. code at the end of the CursorToggle routine in 4.0b1's x11term.c seems
  1434. to fix the problem.  (In other words, '#if 0' on line 737 of x11term.c
  1435. should be changed to '#if 1'.)
  1436. \subsection{Immediate iconification on startup}
  1437. I want Epoch to iconify itself immediately upon starting.  To this end,
  1438. in my .emacs file I have (epoch::iconify-screen).  But most (95%) of the
  1439. time this doesn't work.  How can I make it work all the time?
  1440. The technical explanation appears to be that the initial Epoch
  1441. minibuffer and edit screen are unmapped after creation to set some
  1442. properties for ICCCM purposes and then remapped, and this interferes
  1443. with the iconification process.
  1444. One workaround (that may or may not work for you) is to add a sit-for
  1445. command to your .emacs file right before epoch::iconify-screen; for
  1446. example:
  1447. \begin{verbatim}
  1448.     (sit-for 15)
  1449.     (epoch::iconify-screen)
  1450. \end{verbatim}
  1451. [Thanks to Bobby Bodenheimer (bobby@hot.caltech.edu), Simon Kaplan
  1452. (kaplan@cs.uiuc.edu), and Chris Love (love@cs.uiuc.edu).]
  1453. \cindex{Bodenheimer, Bobby}\cindex{Kaplan, Simon}\cindex{Love, Chris}
  1454. \node Contributors, Index, Prerequisites, (dir)
  1455. \cindex{Contributors}
  1456. \section{Contributors}
  1457. Thanks to the following people for contributing to this FAQ (whether
  1458. knowingly or not :-) as well as anyone else I may have inadvertently
  1459. forgotten to list:
  1460. \begin{itemize}
  1461. \item Bobby Bodenheimer (bobby@hot.caltech.edu)
  1462. \cindex{Bodenheimer, Bobby}
  1463. \item Philippe Bondono (bondono@vnet.ibm.com)
  1464. \cindex{Bondono, Philippe}
  1465. \item Martin Boyer (mboyer@ireq-robot.hydro.qc.ca)
  1466. \cindex{Boyer, Martin}
  1467. \item Alan Carroll (carroll@cs.uiuc.edu)
  1468. \cindex{Carroll, Alan}
  1469. \item Nhi Casey (nhi@ariel.aero.org)
  1470. \cindex{Casey, Nhi}
  1471. \item Dana Chee (dana@thumper.bellcore.com)
  1472. \cindex{Chee, Dana}
  1473. \item Alice Chen (alice@innerdoor.austin.ibm.com)
  1474. \cindex{Chen, Alice}
  1475. \item Bob Fisher (bob@fisher.depaul.edu)
  1476. \cindex{Fisher, Bob}
  1477. \item Jerry Graves (jerry@math.ep.utexas.edu)
  1478. \cindex{Graves, Jerry}
  1479. \item Dev Joneja (dj7@cunixf.cc.columbia.edu)
  1480. \cindex{Joneja, Dev}
  1481. \item Simon Kaplan (kaplan@cs.uiuc.edu)
  1482. \cindex{Kaplan, Simon}
  1483. \item Tor Lillqvist (tml@tik.vtt.fi)
  1484. \cindex{Lillqvist, Tor}
  1485. \item Chris Love (love@cs.uiuc.edu)
  1486. \cindex{Love, Chris}
  1487. \item Simon Marshall (S.Marshall@sequent.cc.hull.ac.uk)
  1488. \cindex{Marshall, Simon}
  1489. \item Rob McCool (robm@ncsa.uiuc.edu)
  1490. \cindex{McCool, Rob}
  1491. \item Arnold Smith (smith@cam.sri.com)
  1492. \cindex{Smith, Arnold}
  1493. \item Michael Thome (mthome@bbn.com)
  1494. \cindex{Thome, Michael}
  1495. \item Ole Vignes (VIGNES@BG.HBG.HYDRO.NO)
  1496. \cindex{Vignes, Ole}
  1497. \item Bob Weiner (rsw@cs.brown.edu)
  1498. \cindex{Weiner, Bob}
  1499. \item Joe Wells (jbw@bigbird.bu.edu)
  1500. \cindex{Wells, Joe}
  1501. \end{itemize}
  1502. Thanks particularly to Jerry Graves for much FAQ work.
  1503. Thanks also to all the people who have spent time and effort
  1504. developing Epoch and associated packages.
  1505. And thanks most especially to Marc Andreessen marca@ncsa.uiuc.edu, the
  1506. previous maintainer of this FAQ, who has gone on to greater glory,
  1507. working directly with the epoch team.
  1508. \cindex{Andreessen, Marc}
  1509. \twocolumn
  1510. \node Index, Top, Contributors, (dir)
  1511. \cindex{Index}
  1512. \section{Index}
  1513. This is an index of all the FAQ questions and what they are about.
  1514. \printindex{cp}
  1515. \end{document}
  1516. Klacktoveedsedstene
  1517.